
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<script type="text/javascript" src="js/jquery-1.11.0.min.js"></script>
<head>
    <title>发送消息</title>
    <link REL="stylesheet" type="text/css" href="css/index.css" />
</head>
<body>
<div class="message-container" style="font-size: 24px">
</div>

<script type="text/javascript">

    $(function(){
        $("#bt_send_message").click(function () {
            $.get("/FinalWork/addmessage.jhtml", {receiver:$("#message_receiver").val(), message:$("#message_content").val()}, function (data, status) {
                $("#alert_message").html(data);
            })
        });

    });
</script>
<div class="righter"style="border: white 5px solid">
<div class="message_content" style="margin-top: 80px;margin-left: 30px;">
    <form action="addmessage.jhtml" method="post" name="sendForm" id="sendForm">
        收件人：<input type="text" id="message_receiver" name="receiver"> <br/>
        <br>
        消息内容：<br/>
        <p>
            <textarea cols="50" rows="10" style="OVERFLOW: hidden" id="message_content" name="content" ></textarea>
        </p>
        <input type="button" value="发送" id="bt_send_message"> &nbsp;
        <input type="file" value="上传附件" name="file">

    </form>

    <br/>
    <span id="alert_message"></span>

</div>

</div>

</body>
</html>
